<include file="Common/index_header-new" />
<link rel="stylesheet" href="__PUBLIC__/home/v2/css/payment.css">
<!-- 支付样式 -->

<div class="main-body">
	<div class="container">
		<div class="payment-details">
			<div class="col-xs-12 col-md-4 payment-order">订单：{$subject}</div>
			<div class="col-xs-12 col-md-4 payment-price">套餐：¥{$total_fee}</div>
			<div class="col-xs-12 col-md-4 payment-number">应付金额：<span>¥{$total_fee}</span></div>
		</div>
		<div>
			<div class="payment-wx-title wx"></div>
			<div class="payment-choice payment-wx-details">
				<img src="/qrcode/img.html?data={$qrcode}" alt="微信二维码">
				<p>请使用微信"扫一扫"</p>
				<p>扫描二维码支付</p>
			</div>
		</div>
	</div>
</div>

<input type="hidden" class="_out_trade_no" value="{$out_trade_no}" />

<include file="Common/index_footer-new" />
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
	function GetOrder() {
		var id = $('._out_trade_no').val();
		$.ajax({
			type: "post",
			dataType: "json",
			url: "/payreport/wxquery.html",
			data: {
				id: id
			},
			success: function(data) {
				if(data.status == 200) {
					clearInterval(time);
					location.href = "/payreport/wxpay_return.html?orderid=" + id;
				}
			}
		});
	}
	var time = window.setInterval("GetOrder()", 10000);
</script>

</body>

</html>